<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  watch: {
    $route(to , from) {
      if(to.path != '/login'){
        let object = {
          name: to.name,
          title: to.meta.title
        }
        this.$store.commit('addTabsEdit' , object)
        //console.log(object)
      }
    }
  }
}
</script>

<style>
  @import "./assets/css/App.css";

</style>
